import {TEMPLATE_POINT,DEMO_ID} from "./const";

const initState = {
  template_point: null,
  demo_id:null
};

export default function reducer(state = initState, {type, payload}) {
  switch (type) {
    case TEMPLATE_POINT:
      return {
        ...state,
        ...payload,
      };
    case DEMO_ID:
      return {
        ...state,
        ...payload,
      };
    default:
      return state;
  }
}
